<test>
  <sql>SELECT	*
FROM	Employees e
WHERE	EXISTS (
			SELECT	et.EmployeeID
			FROM	EmployeeTerritories et
			WHERE	et.EmployeeID = e.EmployeeID
			ORDER	BY 1
		)</sql>
  <expectedErrors>
    <expectedError id="OrderByInvalidInSubqueryUnlessTopIsAlsoSpecified" text="The ORDER BY clause is invalid in derived tables, subqueries, and common table expressions, unless TOP is also specified." />
  </expectedErrors>
</test>